import Vue from 'vue'
import Router from 'vue-router'

import books from '@/components/books/'
import demo from '@/Demo/demo'
import Bookslist from '@/views/books/Bookslist'
Vue.use(Router)

export default new Router({
  mode:'history',
  routes: [
    {
      path: '/login',
      name: 'login',
      component: books
    },
    {
      path: '/demo',
      name: 'demo',
      component: demo
    },
    {
      path: '/bookslist',
      name: 'Books',
      component: Bookslist
    },
  ]
})
